///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Nov 17 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "cpgPanel.h"

///////////////////////////////////////////////////////////////////////////

cpgPanel::cpgPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bigSizer;
	bigSizer = new wxBoxSizer( wxVERTICAL );

	wxStaticBoxSizer* stPBSizer;
	stPBSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("PasteBin.com Settings") ), wxVERTICAL );

	wxBoxSizer* hs1;
	hs1 = new wxBoxSizer( wxHORIZONTAL );

	hlDevKey_pastebin = new wxHyperlinkCtrl( this, wxID_ANY, wxT("Developer Key"), wxT("http://pastebin.com/login"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
	hlDevKey_pastebin->SetToolTip( wxT("Open the pastebin.com website to log in or register in order to retrieve an unique developer key that enables direct access from Code::Blocks.") );

	hs1->Add( hlDevKey_pastebin, 0, wxALIGN_CENTER|wxALL, 5 );

	txtDevKey = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	txtDevKey->SetToolTip( wxT("This is your unique developer key, needed for accessing pastebin.com from within Code::Blocks.\nIf you don't have one, log in or register at the link given in the label.") );

	hs1->Add( txtDevKey, 1, wxALL|wxEXPAND, 5 );

	stPBSizer->Add( hs1, 0, wxEXPAND, 5 );

	wxBoxSizer* hs2;
	hs2 = new wxBoxSizer( wxHORIZONTAL );

	stDefaultTitle = new wxStaticText( this, wxID_ANY, wxT("Default Paste Title"), wxDefaultPosition, wxDefaultSize, 0 );
	stDefaultTitle->Wrap( -1 );
	hs2->Add( stDefaultTitle, 0, wxALIGN_CENTER|wxALL, 5 );

	txtDefaultTitle = new wxTextCtrl( this, wxID_ANY, wxT("Untitled"), wxDefaultPosition, wxDefaultSize, 0 );
	txtDefaultTitle->SetToolTip( wxT("The title used by default for all your pastes.") );

	hs2->Add( txtDefaultTitle, 1, wxALL, 5 );

	stPBSizer->Add( hs2, 1, wxEXPAND, 5 );

	wxBoxSizer* hs;
	hs = new wxBoxSizer( wxHORIZONTAL );

	chkConfirmTitle = new wxCheckBox( this, wxID_ANY, wxT("Always confirm the paste title"), wxDefaultPosition, wxDefaultSize, 0 );
	hs->Add( chkConfirmTitle, 0, wxALIGN_CENTER|wxALL, 5 );

	stPBSizer->Add( hs, 1, wxEXPAND, 5 );

	wxBoxSizer* hs3;
	hs3 = new wxBoxSizer( wxHORIZONTAL );

	stHighlight = new wxStaticText( this, wxID_ANY, wxT("Default Syntax Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
	stHighlight->Wrap( -1 );
	hs3->Add( stHighlight, 0, wxALIGN_CENTER|wxALL, 5 );

	wxArrayString chSyntaxChoices;
	chSyntax = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chSyntaxChoices, 0 );
	chSyntax->SetSelection( 0 );
	hs3->Add( chSyntax, 1, wxALL, 5 );

	stPBSizer->Add( hs3, 1, wxEXPAND, 5 );

	wxBoxSizer* hs4;
	hs4 = new wxBoxSizer( wxHORIZONTAL );

	chkAutoSyntax = new wxCheckBox( this, wxID_ANY, wxT("Automatically detect the syntax from file extension (use the default language as a fallback)"), wxDefaultPosition, wxDefaultSize, 0 );
	hs4->Add( chkAutoSyntax, 0, wxALIGN_CENTER|wxALL, 5 );

	stPBSizer->Add( hs4, 1, wxEXPAND, 5 );

	wxBoxSizer* hs5;
	hs5 = new wxBoxSizer( wxHORIZONTAL );

	stExposure = new wxStaticText( this, wxID_ANY, wxT("Exposure"), wxDefaultPosition, wxDefaultSize, 0 );
	stExposure->Wrap( -1 );
	hs5->Add( stExposure, 1, wxALIGN_CENTER|wxALL, 5 );

	wxString chExposureChoices[] = { wxT("Public"), wxT("Unlisted") };
	int chExposureNChoices = sizeof( chExposureChoices ) / sizeof( wxString );
	chExposure = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chExposureNChoices, chExposureChoices, 0 );
	chExposure->SetSelection( 0 );
	chExposure->SetToolTip( wxT("Decide whether your pastes should be public or unlisted.") );

	hs5->Add( chExposure, 1, wxALL, 5 );

	stDuration = new wxStaticText( this, wxID_ANY, wxT("Expires after"), wxDefaultPosition, wxDefaultSize, 0 );
	stDuration->Wrap( -1 );
	hs5->Add( stDuration, 1, wxALIGN_CENTER|wxALL, 5 );

	wxString chDurationChoices[] = { wxT("Never"), wxT("Ten Minutes"), wxT("One Hour"), wxT("One Day"), wxT("One Week"), wxT("Two Weeks"), wxT("One Month") };
	int chDurationNChoices = sizeof( chDurationChoices ) / sizeof( wxString );
	chDuration = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chDurationNChoices, chDurationChoices, 0 );
	chDuration->SetSelection( 0 );
	chDuration->SetToolTip( wxT("How long your pastes last online before they are deleted.") );

	hs5->Add( chDuration, 3, wxALL, 5 );

	stPBSizer->Add( hs5, 1, wxEXPAND, 5 );

	wxBoxSizer* vs1;
	vs1 = new wxBoxSizer( wxVERTICAL );

	chkCopyLink = new wxCheckBox( this, wxID_ANY, wxT("Copy paste link to clipboard"), wxDefaultPosition, wxDefaultSize, 0 );
	chkCopyLink->SetValue(true);
	vs1->Add( chkCopyLink, 1, wxALL, 5 );

	chkOpenLink = new wxCheckBox( this, wxID_ANY, wxT("Open paste in default web browser"), wxDefaultPosition, wxDefaultSize, 0 );
	chkOpenLink->SetValue(true);
	vs1->Add( chkOpenLink, 0, wxALL, 5 );

	stPBSizer->Add( vs1, 0, wxEXPAND, 5 );

	bigSizer->Add( stPBSizer, 0, wxEXPAND, 5 );

	wxStaticBoxSizer* stConnSizer;
	stConnSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Connection Settings") ), wxVERTICAL );

	wxBoxSizer* vs2;
	vs2 = new wxBoxSizer( wxHORIZONTAL );

	stTimeout = new wxStaticText( this, wxID_ANY, wxT("Server connection timeout (seconds)"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
	stTimeout->Wrap( -1 );
	vs2->Add( stTimeout, 0, wxALIGN_CENTER|wxALL, 5 );

	sldTimeout = new wxSlider( this, wxID_ANY, 5, 1, 30, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS );
	sldTimeout->SetToolTip( wxT("How long Code::Blocks tries to estabilish a connection to the server.") );

	vs2->Add( sldTimeout, 1, wxALIGN_CENTER|wxALL|wxEXPAND, 5 );

	stConnSizer->Add( vs2, 1, wxEXPAND, 5 );

	bigSizer->Add( stConnSizer, 0, wxEXPAND, 5 );

	this->SetSizer( bigSizer );
	this->Layout();
}

cpgPanel::~cpgPanel()
{
}
